import request from '@/utils/http';
import { IUserItem } from './type';
// 用户管理
// export const userList = (params: any): Promise<App.RequestTableResult<IUserItem>> => {
//   return request.get(`/mock/user`, { params });
// };
/** 用户-管理列表 */
export const userListRequest = (data: object) => {
  return request.post('/user/list', data);
};
/** 用户-统计数量 */
export const userStatisticsRequest = (data: object) => {
  return request.post('/user/statistics', data);
};
/** 用户-详情 */
export const userDetailRequest = (data: object) => {
  return request.post('/user/detail', data);
};
/** 用户-基本信息-编辑保存 */
export const editBasicRequest = (data: object) => {
  return request.post('/user/editBasic', data);
};
/** 用户-详细信息-编辑保存 */
export const editDetailRequest = (data: object) => {
  return request.post('/user/editDetail', data);
};
/** 用户-新增 */
export const userAddUserRequest = (data: object) => {
  return request.post('/user/addUser', data);
};
/** 导出 */
export const exportRequest = (data: object) => {
  return request.post('/user/export', data);
};
/** 用户-管理列表 */
export const getUserList = (data: object) => {
  return request.post('/user/userInfoList', data);
};